﻿<?php
include_once("header.inc.php");
include_once("metier/montontonPDO.php");
?>

<div id="centralcontent">

<table>
<tr>


<!-- central pane content -->
<?php
echo '
<td id="leftpane" class="pane" valign="top">

	<h2 class="panetitle">
	Suggestions
	</h2>
	
	<div class="leftpanecontent">';


	echo '
	</div>

</td>
';
?>
<!-- end of central pane content -->


<!-- central pane content -->
<?php
$bdd = new montontonPDO();
$placeinfo = $bdd->recupererInfosLieu($_GET['id']);
echo '
<td id="centralpane" class="pane">
	<div class="ranking" style="float:right;width:15px;">';
		if($placeinfo['notelieu'] == 0) {
			$note = 0;
			$nbvote = 0;
		}
		else {
			$nbvote = explode(":", $placeinfo['notelieu']);
			$nbvote = $nbvote[0];
			$note = explode(":", $placeinfo['notelieu']);
			$note = round($note[1]);
		}
		$note = round($note);
		echo '<img src="img/etoilesnote/etoile'.$note.'.png" alt ="'.$note.'/5" title="'.$note.'/5" />';
		
		echo '
	</div>
	<h2 class="placetitle">';

		echo $placeinfo['nom'];

		echo '
	</h2>
	<h3>';
	
		echo ($placeinfo['complement'] == "" || $placeinfo['complement'] == NULL ? "" : $placeinfo['complement'].', ').$placeinfo['numero'].' '.$placeinfo['rue'].', '.$placeinfo['codepostal'].' '.$placeinfo['nomville'];
	
		echo '
	</h3>
	<div class="centralpanecontent">';

		echo $placeinfo['contenu'];
		
		echo '
	</div>

</td>
';
?>
<!-- end of central pane content -->


</tr>
</table>

</div>

<?php
$bdd = null;
include_once("footer.php");
?>

